home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 007 / asmbatch.arc / ASM2EXE.BAT < prev    next >
Encoding:
DOS Batch File  |  1986-06-11  |  534 b   |  28 lines

  1. echo off
  2. rem ASM2EXE filename [options|libname]
  3. if .%1 == . goto nosource
  4. if exist %1 goto bad-ext
  5. if not exist %1.asm goto nofile
  6. masm %1 %1 %1 nul /N
  7. if errorlevel 1 goto endall
  8. rem echo Ctrl-C to skip LINK
  9. rem pause
  10. if exist %2.lib goto uselib
  11. link %1,%1,nul,nul %2
  12. goto wrapup
  13. :uselib
  14. link %1,%1,nul,%2
  15. :wrapup
  16. erase %1.obj
  17. goto endall
  18. :nosource
  19. echo No source file specified...
  20. goto endall
  21. :bad-ext
  22. echo ".ASM" must NOT be specified
  23. goto endall
  24. :nofile
  25. echo Source file does not exist
  26. :endall
  27. echo on
  28.